package com.idc.config.security.login.mobile_code;

import org.springframework.security.authentication.AbstractAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

/**
 * @author Trump
 * @version 1.0.0
 * @ClassName MobileCodeAuthenticationToken.java
 * @Description TODO
 * @createTime 2019年08月15日 11:24:00
 */
public class MobileCodeAuthenticationToken extends AbstractAuthenticationToken {


    private String mobile;
    private String code;

    public MobileCodeAuthenticationToken(String mobile, String code) {
        super(null);
        this.mobile = mobile;
        this.code = code;
    }

    @Override
    public Object getCredentials() {
        return null;
    }

    @Override
    public Object getPrincipal() {
        return null;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
